package 拦截器;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @GetMapping("/test")
    public String test() {
        return "拦截器测试成功！";
    }

    @GetMapping("/login")
    public String login() {
        return "这是登录页面，不会被拦截！";
    }
}

